package ru.myrtle.umf.impl;

import java.util.*;
import ru.myrtle.umf.*;
import ru.myrtle.umf.util.*;

public class UEnumerationOperations extends UEnumerationOperationsStub  {

    @Override
    public UEnumerationLiteral getLiteralByName(UEnumeration self, String name) {
        for (UEnumerationLiteral literal : self.getLiterals()) {
            if (literal.getName().equals(name)) {
                return literal;
            }
        }

        return null;
    }

}
